home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / emacssrc.zip / EMACSSRC.TAR / emacs-19.17 / etc / news < prev    next >
Text File  |  1993-07-18  |  79KB  |  1,875 lines

  1. GNU Emacs NEWS -- history of user-visible changes.  7 Jul 1993
  2. Copyright (C) 1993 Free Software Foundation, Inc.
  3. See the end for copying conditions.
  4.  
  5. Please send Emacs bug reports to bug-gnu-emacs@prep.ai.mit.edu.
  6. For older news, see the file ONEWS.  For Lisp changes in Emacs 19,
  7. see the file LNEWS.
  8.  
  9. Changes in version 19.17.
  10.  
  11. * When Emacs displays a list of completions in a buffer, 
  12. you can select a completion by clicking mouse button 2
  13. on that completion.
  14.  
  15. * Use the command `list-faces-display' to display a list of 
  16. all the currently defined faces, showing what they look like.
  17.  
  18. * Menu bar items from local maps now come after the usual items.
  19.  
  20. * The Help menu bar item always comes last in the menu bar.
  21.  
  22. * If you enable Font-Lock mode on a buffer containing a program
  23. (certain languages such as C and Lisp are supported), everything you
  24. type is automatically given a face property appropriate to its
  25. syntactic role.  For example, there are faces for comments, string
  26. constants, names of functions being defined, and so on.
  27.  
  28. * Dunnet, an adventure game, is now available.
  29.  
  30. * Several major modes now have their own menu bar items, 
  31. including Dired, Rmail, and Sendmail.  We would like to add 
  32. suitable menu bar items to other major modes.
  33.  
  34. * The key binding C-x a C-h has been eliminated.
  35. This is because it got in the way of the general feature of typing
  36. C-h after a prefix character.  If you want to run
  37. inverse-add-global-abbrev, you can use C-x a - or C-x a i g instead.
  38.  
  39. * If you set the variable `rmail-mail-new-frame' to a non-nil value,
  40. all the Rmail commands to send mail make a new frame to do it in.
  41. When you send the message, or use the menu bar command not to send it,
  42. that frame is deleted.
  43.  
  44. * In Rmail, the o and C-o commands are now almost interchangeable.
  45. Both commands check the format of the file you specify, and append
  46. the message to it in Rmail format if it is an Rmail file, and in
  47. inbox file format otherwise.  C-o and o are different only when you
  48. specify a new file.
  49.  
  50. * The function `copy-face' now takes an optional fourth argument
  51. NEW-FRAME.  If you specify this, it copies the definition of face
  52. OLD-FACE on frame FRAME to face NEW-NAME on frame NEW-FRAME.
  53.  
  54. * A local map can now cancel out one of the global map's menu items.
  55. Just define that subcommand of the menu item with `undefined'
  56. as the definition.  For example, this cancels out the `Buffers' item
  57. for the current major mode:
  58.  
  59.     (local-set-key [menu-bar buffer] 'undefined)
  60.  
  61. * To put global items at the end of the menu bar, use the new variable
  62. `menu-bar-final-items'.  It should be a list of symbols--event types
  63. bound in the menu bar.  The menu bar items for these symbols are
  64. moved to the end.
  65.  
  66. * The list returned by `buffer-local-variables' now contains cons-cell
  67. elements of the form (SYMBOL . VALUE) only for buffer-local variables
  68. that have values.  For unbound buffer-local variables, the variable
  69. name (symbol) appears directly as an element of the list.
  70.  
  71. * The `modification-hooks' property of a character no longer affects
  72. insertion; it runs only for deletion and modification of the character.
  73.  
  74. To detect insertion, use `insert-in-front-hooks' and
  75. `insert-behind-hooks' properties.  The former runs when text is
  76. inserted immediately preceding the character that has the property;
  77. the latter runs when text is inserted immediately following the
  78. character.
  79.  
  80. * Buffer modification now runs hooks belonging to overlays as well as
  81. hooks belonging to characters.  If an overlay has a
  82. `modification-hooks' property, it applies to any change to text in the
  83. overlay, and any insertion within the overlay.  If the overlay has a
  84. `insert-in-front-hooks' property, it runs for insertion at the
  85. beginning boundary of the overlay.  If the overlay has an
  86. `insert-behind-hooks' property, it runs for insertion at the end
  87. boundary of the overlay.
  88.  
  89. The values of these properties should be lists of functions.  Each
  90. function is called, receiving as arguments the overlay in question,
  91. followed by the bounds of the range being modified.
  92.  
  93. * The new `-name NAME' option directs Emacs to search for its X
  94. resources using the name `NAME', and sets the title of the initial
  95. frame.  This argument was added for consistency with other X clients.
  96.  
  97. * The new `-xrm DATABASE' option tells Emacs to treat the string
  98. DATABASE as the text of an X resource database.  Emacs searches
  99. DATABASE for resource values, in addition to the usual places.  This
  100. argument was added for consistency with other X clients.
  101.  
  102. * Emacs now searches for X resources in the files specified by the
  103. XFILESEARCHPATH, XUSERFILESEARCHPATH, and XAPPLRESDIR environment
  104. variables, emulating the functionality provided by programs written
  105. using Xt.  Because of this change, Emacs will now notice system-wide
  106. application defaults files, as other X clients do.
  107.  
  108. XFILESEARCHPATH and XUSERFILESEARCHPATH should be a list of file names
  109. separated by colons; XAPPLRESDIR should be a list of directory names
  110. separated by colons.
  111.  
  112. Emacs searches for X resources
  113.   + specified on the command line, with the `-xrm RESOURCESTRING'
  114.     option,
  115.   + then in the value of the XENVIRONMENT environment variable,
  116.     - or if that is unset, in the file named ~/.Xdefaults-HOSTNAME if it exists
  117.       (where HOSTNAME is the hostname of the machine Emacs is running on),
  118.   + then in the screen-specific and server-wide resource properties
  119.     provided by the server,
  120.     - or if those properties are unset, in the file named ~/.Xdefaults
  121.       if it exists,
  122.   + then in the files listed in XUSERFILESEARCHPATH,
  123.     - or in files named LANG/Emacs in directories listed in XAPPLRESDIR
  124.       (where LANG is the value of the LANG environment variable), if
  125.       the LANG environment variable is set,
  126.     - or in files named Emacs in the directories listed in XAPPLRESDIR
  127.     - or in ~/LANG/Emacs (if the LANG environment variable is set),
  128.     - or in ~/Emacs,
  129.   + then in the files listed in XFILESEARCHPATH.
  130.  
  131. The paths in the variables XFILESEARCHPATH, XUSERFILESEARCHPATH, and
  132. XAPPLRESDIR may contain %-escapes (like the control strings passed to
  133. the the Emacs lisp `format' function or C printf function), which
  134. Emacs expands.
  135.  
  136. %N is replaced by the string "Emacs" wherever it occurs.
  137. %T is replaced by "app-defaults" wherever it occurs.
  138. %S is replaced by the empty string wherever it occurs.
  139. %L and %l are replaced by the value of the LANG environment variable; if LANG
  140.    is not set, Emacs does not use that directory or file name at all.
  141. %C is replaced by the value of the resource named "customization"
  142.    (class "Customization"), as retrieved from the server's resource
  143.    properties or the user's ~/.Xdefaults file, or the empty string if
  144.    that resource doesn't exist.
  145.  
  146. So, for example,
  147.   if XFILESEARCHPATH is set to the value
  148.     "/usr/lib/X11/%L/%T/%N%C:/usr/lib/X11/%T/%N%C:/usr/lib/X11/%T/%N",
  149.   and the LANG environment variable is set to
  150.     "english",
  151.   and the customization resource is the string
  152.     "-color",
  153. then, in the last step of the process described above, Emacs checks
  154. for resources in the first of the following files that is present and
  155. readable:
  156.     /usr/lib/X11/english/app-defaults/Emacs-color
  157.     /usr/lib/X11/app-defaults/Emacs-color
  158.     /usr/lib/X11/app-defaults/Emacs
  159. If the LANG environment variable is not set, then Emacs never uses the
  160. first element of the path, "/usr/lib/X11/%L/%T/%N%C", because it
  161. contains the %L escape.
  162.  
  163. If XFILESEARCHPATH is unset, Emacs uses the default value
  164. "/usr/lib/X11/%L/app-defaults/Emacs%C:\
  165. /usr/lib/X11/app-defaults/Emacs%C:\
  166. /usr/lib/X11/%L/app-defaults/Emacs:\
  167. /usr/lib/X11/app-defaults/Emacs"
  168.  
  169. This feature was added for consistency with other X applications.
  170.  
  171. * The new function `text-property-any' scans the region of text from
  172. START to END to see if any character's property PROP is `eq' to
  173. VALUE.  If so, it returns the position of the first such character.
  174. Otherwise, it returns nil.
  175.  
  176. The optional fifth argument, OBJECT, specifies the string or buffer to
  177. be examined.
  178.  
  179. * The new function `text-property-not-all' scans the region of text from
  180. START to END to see if any character's property PROP is not `eq' to
  181. VALUE.  If so, it returns the position of the first such character.
  182. Otherwise, it returns nil.
  183.  
  184. The optional fifth argument, OBJECT, specifies the string or buffer to
  185. be examined.
  186.  
  187. * The function `delete-windows-on' now takes an optional second
  188. argument FRAME, which specifies which frames it should affect.
  189.   + If FRAME is nil or omitted, then `delete-windows-on' deletes windows
  190.     showing BUFFER (its first argument) on all frames.
  191.   + If FRAME is t, then `delete-windows-on' only deletes windows on the
  192.     selected frame; other frames are unaffected.
  193.   + If FRAME is a frame, then `delete-windows-on' only deletes windows on
  194.     the given frame; other frames are unaffected.
  195.  
  196.  
  197. Changes in version 19.16.
  198.  
  199. * When dragging the mouse to select a region, Emacs now highlights the
  200. region as you drag (if Transient Mark mode is enabled).  If you
  201. continue the drag beyond the boundaries of the window, Emacs scrolls
  202. the window at a steady rate until you either move the mouse back into
  203. the window or release the button.
  204.  
  205. * RET now exits `query-replace' and `query-replace-regexp'; this makes it
  206. more consistent with the incremental search facility, which uses RET
  207. to end the search.
  208.  
  209. * In C mode, C-c C-u now runs c-up-conditional.
  210. C-c C-n and C-c C-p now run new commands that move forward
  211. and back over balanced sets of C conditionals (c-forward-conditional
  212. and c-backward-conditional).
  213.  
  214. * The Edit entry in the menu bar has a new alternative:
  215. "Choose Next Paste".  It gives you a menu showing the various
  216. strings in the kill ring; click on one to select it as the text 
  217. to be yanked ("pasted") the next time you yank.
  218.  
  219. * If you enable Transient Mark mode and set `mark-even-if-inactive' to
  220. non-nil, then the region is highlighted in a transient fashion just as
  221. normally in Transient Mark mode, but the mark really remains active
  222. all the time; commands that use the region can be used even if the
  223. region highlighting turns off.
  224.  
  225. * If you type C-h after a prefix key, it displays the bindings
  226. that start with that prefix.
  227.  
  228. * The VC package now searches for version control commands in the
  229. directories named by the variable `vc-path'; its value should be a
  230. list of strings.
  231.  
  232. * If you are visiting a file that has locks registered under RCS,
  233. VC now displays each lock's owner and version number in the mode line
  234. after the string `RCS'.  If there are no locks, VC displays the head
  235. version number.
  236.  
  237. * When using X, if you load the `paren' library, Emacs automatically
  238. underlines or highlights the matching paren whenever point is
  239. next to the outside of a paren.  When point is before an open-paren,
  240. this shows the matching close; when point is after a close-paren,
  241. this shows the matching open.
  242.  
  243. * The new function `define-key-after' is like `define-key',
  244. but takes an extra argument AFTER.  It places the newly defined
  245. binding after the binding for the event AFTER.
  246.  
  247. * `accessible-keymaps' now takes an optional second argument, PREFIX.
  248. If PREFIX is non-nil, it means the value should include only maps for
  249. keys that start with PREFIX.
  250.  
  251. `describe-bindings' also accepts an optional argument PREFIX which
  252. means to describe only the keys that start with PREFIX.
  253.  
  254. * The variable `prefix-help-command' hold a command to run to display help
  255. whenever the character `help-char' follows a prefix key and does not have
  256. a key binding in that context.
  257.  
  258. * Emacs now detects double- and triple-mouse clicks.  A single mouse
  259. click produces a pair events of the form:
  260.     (down-mouse-N POSITION)
  261.     (mouse-N POSITION)
  262. Clicking the same mouse button again, soon thereafter and at the same
  263. location, produces another pair of events of the form:
  264.     (down-mouse-N POSITION)
  265.     (double-mouse-N POSITION 2)
  266. Another click will produce an event pair of the form:
  267.     (down-mouse-N POSITION)
  268.     (triple-mouse-N POSITION 3)
  269. All the POSITIONs in such a sequence would be identical, except for
  270. their timestamps.
  271.  
  272. To count as double- and triple-clicks, mouse clicks must be at the
  273. same location as the first click, and the number of milliseconds
  274. between the first release and the second must be less than the value
  275. of the lisp variable `double-click-time'.  Setting `double-click-time'
  276. to nil disables multi-click detection.  Setting it to t removes the
  277. time limit; Emacs then detects multi-clicks by position only.
  278.  
  279. If `read-key-sequence' finds no binding for a double-click event, but
  280. the corresponding single-click event would be bound,
  281. `read-key-sequence' demotes it to a single-click.  Similarly, it
  282. demotes unbound triple-clicks to double- or single-clicks.  This means
  283. you don't have to distinguish between single- and multi-clicks if you
  284. don't want to.
  285.  
  286. Emacs reports all clicks after the third as `triple-mouse-N' clicks,
  287. but increments the click count after POSITION.  For example, a fourth
  288. click, soon after the third and at the same location, produces a pair
  289. of events of the form:
  290.     (down-mouse-N POSITION)
  291.     (triple-mouse-N POSITION 4)
  292.  
  293. * The way Emacs reports positions of mouse events has changed
  294. slightly.  If a mouse event includes a position list of the form:
  295.     (WINDOW (PLACE-SYMBOL) (COLUMN . ROW) TIMESTAMP)
  296. this denotes exactly the same position as the list:
  297.     (WINDOW  PLACE-SYMBOL  (COLUMN . ROW) TIMESTAMP)
  298. That is, the event occurred over a non-textual area of the frame,
  299. specified by PLACE-SYMBOL, a symbol like `mode-line' or
  300. `vertical-scroll-bar'.
  301.  
  302. Enclosing PLACE-SYMBOL in a singleton list does not change the
  303. position denoted, but the `read-key-sequence' function uses the
  304. presence or absence of the singleton list to tell whether or not it
  305. should prefix the event with its place symbol.
  306.  
  307. Normally, `read-key-sequence' prefixes mouse events occuring over
  308. non-textual areas with their PLACE-SYMBOLs, to select the sub-keymap
  309. appropriate for the event; for example, clicking on the mode line
  310. produces a sequence like
  311.     [mode-line (mouse-1 POSN)]
  312. However, if lisp code elects to unread the resulting key sequence by
  313. placing it in the `unread-command-events' variable, it is important
  314. that `read-key-sequence' not insert the prefix symbol again; that
  315. would produce a malformed key sequence like
  316.     [mode-line mode-line (mouse-1 POSN)]
  317. For this reason, `read-key-sequence' encloses the event's PLACE-SYMBOL
  318. in a singleton list when it first inserts the prefix, but doesn't
  319. insert the prefix when processing events whose PLACE-SYMBOLs are
  320. already thus enclosed.
  321.  
  322.  
  323. Changes in version 19.15.
  324.  
  325. * `make-frame-visible', which uniconified frames, is now a command,
  326. and thus may be bound to a key.  This makes sense because frames
  327. respond to user input while iconified.
  328.  
  329. * You can now use Meta mouse clicks to set and use the "secondary
  330. selection".  You can drag M-Mouse-1 across the region you want to
  331. select.  Or you can press M-Mouse-1 at one end and M-Mouse-3 at the
  332. other (this also copies the text to the kill ring).  Repeating M-Mouse-3
  333. again at the same place kills that text.
  334.  
  335. M-Mouse-2 kills the secondary selection.
  336.  
  337. Setting the secondary selection does not move point or the mark.  It
  338. is possible to make a secondary selection that does not all fit on the
  339. screen, by using M-Mouse-1 at one end, scrolling, then using M-Mouse-3
  340. at the other end.
  341.  
  342. Emacs has only one secondary selection at any time.  Starting to set
  343. a new one cancels any previous one.  The secondary selection displays
  344. using a face named `secondary-selection'.
  345.  
  346. * There's a new way to request use of Supercite (sc.el).  Do this:
  347.  
  348.     (add-hook 'mail-citation-hook 'sc-cite-original)
  349.  
  350. Currently this works with Rmail.  In the future, other Emacs based
  351. mail-readers should be modified to understand this hook also.
  352. In the mean time, you should keep doing what you have done in the past
  353. for those other mail readers.
  354.  
  355. * When a regular expression contains `\(...\)' inside a repetition
  356. operator such as `*' or `+', and you ask about the range that was matched
  357. using `match-beginning' and `match-end', the range you get corresponds
  358. to the *last* repetition *only*.  In Emacs 18, you would get a range
  359. corresponding to all the repetitions.
  360.  
  361. If you want to get a range corresponding to all the repetitions,
  362. put a `\(...\)' grouping *outside* the repetition operator.  This
  363. is the syntax that corresponds logically to the desired result, and
  364. it works the same in Emacs 18 and Emacs 19.
  365.  
  366. (This change actually took place earlier, but we didn't know about it
  367. and thus didn't document it.)
  368.  
  369. Changes in version 19.14.
  370.  
  371. * To modify read-only text, bind the variable `inhibit-read-only'
  372. to a non-nil value.  If the value is t, then all reasons that might
  373. make text read-only are inhibited (including `read-only' text properties).
  374. If the value is a list, then a `read-only' property is inhibited
  375. if it is `memq' in the list.
  376.  
  377. * If you call `get-buffer-window' passing t as its second argument, it
  378. will only search for windows on visible frames.  Previously, passing t
  379. as the secord argument caused `get-buffer-window' to search all
  380. frames, visible or not.
  381.  
  382. * If you call `other-buffer' with a nil or omitted second argument, it
  383. will ignore buffers displayed windows on any visible frame, not just
  384. the selected frame.
  385.  
  386. * You can specify a window or a frame for C-x # to use when
  387. selects a server buffer.  Set the variable server-window
  388. to the window or frame that you want.
  389.  
  390. * The command M-( now inserts spaces outside the open-parentheses in
  391. some cases--depending on the syntax classes of the surrounding
  392. characters.  If the variable `parens-dont-require-spaces' is non-nil,
  393. it inhibits insertion of these spaces.
  394.  
  395. * The GUD package now supports the debugger known as xdb on HP/UX
  396. systems.  Use M-x xdb.  The variable `gud-xdb-directories' lets you
  397. specify a list of directories to search for source code.
  398.  
  399. * If you are using the mailabbrev package, you should note that its
  400. function for defining an alias is now called `define-mail-abbrev'.
  401. This package no longer contains a definition for `define-mail-alias';
  402. that name is used only in mailaliases.
  403.  
  404. * Inserted characters now inherit the properties of the text before
  405. them, by default, rather than those of the following text.
  406.  
  407. * The function `insert-file-contents' now takes optional arguments BEG
  408. and END that specify which part of the file to insert.  BEG defaults to
  409. 0 (the beginning of the file), and END defaults to the end of the file.
  410.  
  411. If you specify BEG or END, then the argument VISIT must be nil.
  412.  
  413. Changes in version 19.13.
  414.  
  415. * Magic file names can now handle the `load' operation.
  416.  
  417. * Bibtex mode now sets up special entries in the menu bar.
  418.  
  419. * The incremental search commands C-w and C-y, which copy text from
  420. the buffer into the search string, now convert it to lower case
  421. if you are in a case-insensitive search.  This is to avoid making
  422. the search a case-sensitive one.
  423.  
  424. * GNUS now knows your time zone automatically if Emacs does.
  425.  
  426. * Hide-ifdef mode no longer defines keys of the form
  427. C-c LETTER, since those keys are reserved for users.
  428. Those commands have been moved to C-c M-LETTER.
  429. We may move them again for greater consistency with other modes.
  430.  
  431. Changes in version 19.12.
  432.  
  433. * You can now make many of the sort commands ignore case by setting
  434. `sort-fold-case' to a non-nil value.
  435.  
  436. Changes in version 19.11.
  437.  
  438. * Supercite is installed.
  439.  
  440. * `write-file-hooks' functions that return non-nil are responsible
  441. for making a backup file if you want that to be done.
  442. To do so, execute the following code:
  443.  
  444.    (or buffer-backed-up (backup-buffer))
  445.  
  446. You might wish to save the file modes value returned by
  447. `backup-buffer' and use that to set the mode bits of the file
  448. that you write.  This is what `basic-save-buffer' does when
  449. it writes a file in the usual way.
  450.  
  451. (This is not actually new, but wasn't documented before.)
  452.  
  453. Changes in version 19.10.
  454.  
  455. * The command `repeat-complex-command' is now on C-x ESC ESC.
  456. It used to be bound to C-x ESC.
  457.  
  458. The reason for this change is to make function keys work after C-x.
  459.  
  460. * The variable `highlight-nonselected-windows' now controls whether
  461. the region is highlighted in windows other than the selected window
  462. (in Transient Mark mode only, of course, and currently only when
  463. using X).
  464.  
  465. Changes in version 19.8.
  466.  
  467. * It is now simpler to tell Emacs to display accented characters under
  468. X windows.  M-x standard-display-european toggles the display of
  469. buffer text according to the ISO Latin-1 standard.  With a prefix
  470. argument, this command enables European character display iff the
  471. argument is positive.
  472.  
  473. * The `-i' command-line argument tells Emacs to use a picture of the
  474. GNU gnu as its icon, instead of letting the window manager choose an
  475. icon for it.  This option used to insert a file into the current
  476. buffer; use `-insert' to do that now.
  477.  
  478. * The `configure' script now supports `--prefix' and `--exec-prefix'
  479. options.
  480.  
  481. The `--prefix=PREFIXDIR' option specifies where the installation process
  482. should put emacs and its data files.  This defaults to `/usr/local'.
  483. - Emacs (and the other utilities users run) go in PREFIXDIR/bin
  484.   (unless the `--exec-prefix' option says otherwise).
  485. - The architecture-independent files go in PREFIXDIR/lib/emacs/VERSION
  486.   (where VERSION is the version number of Emacs, like `19.7').
  487. - The architecture-dependent files go in
  488.   PREFIXDIR/lib/emacs/VERSION/CONFIGURATION
  489.   (where CONFIGURATION is the configuration name, like mips-dec-ultrix4.2),
  490.   unless the `--exec-prefix' option says otherwise.
  491.  
  492. The `--exec-prefix=EXECDIR' option allows you to specify a separate
  493. portion of the directory tree for installing architecture-specific
  494. files, like executables and utility programs.  If specified,
  495. - Emacs (and the other utilities users run) go in EXECDIR/bin, and
  496. - The architecture-dependent files go in
  497.   EXECDIR/lib/emacs/VERSION/CONFIGURATION.
  498. EXECDIR/bin should be a directory that is normally in users' PATHs.
  499.  
  500. * When running under X Windows, the new lisp function `x-list-fonts'
  501. allows code to find out which fonts are available from the X server.
  502. The first argument PATTERN is a string, perhaps with wildcard characters;
  503.   the * character matches any substring, and
  504.   the ? character matches any single character.
  505.   PATTERN is case-insensitive.
  506. If the optional arguments FACE and FRAME are specified, then
  507. `x-list-fonts' returns only fonts the same size as FACE on FRAME.
  508.  
  509.  
  510.  
  511. Changes in version 19.
  512.  
  513. * When you kill buffers, Emacs now returns memory to the operating system,
  514. thus reducing the size of the Emacs process.  All the space that you free
  515. up by killing buffers can now be reused for other buffers no matter what
  516. their sizes, or reused by other processes if Emacs doesn't need it.
  517.  
  518. * Emacs now does garbage collection and auto saving while it is waiting
  519. for input, which often avoids the need to do these things while you
  520. are typing.
  521.  
  522. The variable `auto-save-timeout' says how many seconds Emacs should
  523. wait, after you stop typing, before it does an auto save and a garbage
  524. collection.
  525.  
  526. * If auto saving detects that a buffer has shrunk greatly, it refrains
  527. from auto saving that buffer and displays a warning.  Now it also turns
  528. off Auto Save mode in that buffer, so that you won't get the same
  529. warning again.
  530.  
  531. If you reenable Auto Save mode in that buffer, Emacs will start saving
  532. it again with no further warnings.
  533.  
  534. * A new minor mode called Line Number mode displays the current line
  535. number in the mode line, updating it as necessary when you move
  536. point.
  537.  
  538. However, if the buffer is very large (larger than the value of
  539. `line-number-display-limit'), then the line number doesn't appear.
  540. This is because computing the line number can be painfully slow if the
  541. buffer is very large.
  542.  
  543. * You can quit while Emacs is waiting to read or write files.
  544.  
  545. * The arrow keys now have default bindings to move in the appropriate
  546. directions. 
  547.  
  548. * You can suppress next-line's habit of inserting a newline when
  549. called at the end of a buffer by setting next-line-add-newlines to nil
  550. (it defaults to t).
  551.  
  552. * You can now get back recent minibuffer inputs conveniently.  While
  553. in the minibuffer, type M-p to fetch the next earlier minibuffer
  554. input, and use M-n to fetch the next later input.
  555.  
  556. There are also commands to search forward or backward through the
  557. history for history elements that match a regular expression.  M-r
  558. searches older elements in the history, while M-s searches newer
  559. elements.  By special dispensation, these commands can always use the
  560. minibuffer to read their arguments even though you are already in the
  561. minibuffer when you issue them.
  562.  
  563. The history feature is available for all uses of the minibuffer, but
  564. there are separate history lists for different kinds of input.  For
  565. example, there is a list for file names, used by all the commands that
  566. read file names.  There is a list for arguments of commands like
  567. `query-replace'.  There are also very specific history lists, such
  568. as the one that `compile' uses for compilation commands.
  569.  
  570. * You can now display text in a mixture of fonts and colors, using the
  571. "face" feature, together with the overlay and text property features.
  572. See the Emacs Lisp manual for details.  The Emacs Users Manual describes
  573. how to change the colors and font of standard predefined faces.
  574.  
  575. * You can refer to files on other machines using special file name syntax:
  576.  
  577. /HOST:FILENAME
  578. /USER@HOST:FILENAME
  579.  
  580. When you do this, Emacs uses the FTP program to read and write files on
  581. the specified host.  It logs in through FTP using your user name or the
  582. name USER.  It may ask you for a password from time to time; this
  583. is used for logging in on HOST.
  584.  
  585. * Some C-x key bindings have been moved onto new prefix keys.
  586.  
  587. C-x r is a prefix for registers and rectangles.
  588. C-x n is a prefix for narrowing.
  589. C-x a is a prefix for abbrev commands.
  590.  
  591. C-x r C-SPC
  592. C-x r SPC    point-to-register    (Was C-x /)
  593. C-x r j        jump-to-register     (Was C-x j)
  594. C-x r s        copy-to-register     (Was C-x x)
  595. C-x r i        insert-register      (Was C-x g)
  596. C-x r r        copy-rectangle-to-register  (Was C-x r)
  597. C-x r k        kill-rectangle
  598. C-x r y        yank-rectangle
  599. C-x r o        open-rectangle
  600. C-x r f        frame-configuration-to-register
  601.           (This saves the state of all windows in all frames.)
  602. C-x r w        window-configuration-to-register
  603.           (This saves the state of all windows in the selected  frame.)
  604.  
  605. (Use C-x r j to restore a configuration saved with C-x r f or C-x r w.)
  606.  
  607. C-x n n        narrow-to-region    (Was C-x n)
  608. C-x n p        narrow-to-page        (Was C-x p)
  609. C-x n w        widen            (Was C-x w)
  610.  
  611. C-x a l        add-mode-abbrev        (Was C-x C-a)
  612. C-x a g        add-global-abbrev    (Was C-x +)
  613. C-x a i l    inverse-add-mode-abbrev    (Was C-x C-h)
  614. C-x a i g    inverse-add-global-abbrev  (Was C-x -)
  615. C-x a e        expand-abbrev        (Was C-x ')
  616.  
  617. (The old key bindings C-x /, C-x j, C-x x and C-x g
  618. have not yet been removed.)
  619.  
  620. * You can put a file name in a register to be able to visit the file
  621. quickly.  Do this:
  622.  
  623.    (set-register ?CHAR '(file . NAME))
  624.  
  625. where NAME is the file name as a string.  Then C-x r j CHAR finds that
  626. file.
  627.  
  628. This is useful for files that you need to visit frequently,
  629. but that you don't want to keep in buffers all the time.
  630.  
  631. * The keys M-g (fill-region) and C-x a (append-to-buffer)
  632. have been eliminated.
  633.  
  634. * The new command `string-rectangle' inserts a specified string on
  635. each line of the region-rectangle.
  636.  
  637. * C-x 4 r is now `find-file-read-only-other-window'.
  638.  
  639. * C-x 4 C-o is now `display-buffer', which displays a specified buffer
  640. in another window without selecting it.
  641.  
  642. * Picture mode has been substantially improved.  The picture editing commands
  643. now arrange for automatic horizontal scrolling to keep point visible
  644. when editing a wide buffer with truncate-lines on.  Picture-mode
  645. initialization now does a better job of rebinding standard commands;
  646. it finds not just their normal keybindings, but any function keys
  647. attached to them.
  648.  
  649. * If you enable Transient Mark mode, then the mark becomes "inactive"
  650. after every command that modifies the buffer.  While the mark is
  651. active, the region is highlighted (under X, at least).  Most commands
  652. that use the mark give an error if the mark is inactive, but you can
  653. use C-x C-x to make it active again.  This feature is also sometimes
  654. known as "Zmacs mode".
  655.  
  656. * Outline mode is now available as a minor mode.  This minor mode can
  657. combine with any major mode; it substitutes the C-c commands of
  658. Outline mode for those of the major mode.  Use M-x outline-minor-mode
  659. to enable and disable the new mode.
  660.  
  661. M-x outline-mode is unchanged; it still switches to Outline mode as a
  662. major mode.
  663.  
  664. * The default setting of `version-control' comes from the environment
  665. variable VERSION_CONTROL.
  666.  
  667. * The user option for controlling whether files can set local
  668. variables is now called `enable-local-variables'.  A value of t means
  669. local-variables lists are obeyed; nil means they are ignored; anything
  670. else means query the user.
  671.  
  672. The user option for controlling use of the `eval' local variable is
  673. now called is `enable-local-eval'; its values are interpreted like
  674. those of `enable-local-variables'.
  675.  
  676. * X Window System changes:
  677.  
  678. C-x 5 C-f and C-x 5 b switch to a specified file or buffer in a new
  679. frame.  Likewise, C-x 5 m starts outgoing mail in another frame, and
  680. C-x 5 . finds a tag in another frame.
  681.  
  682. When you are using X, C-z now iconifies the selected frame.
  683.  
  684. Emacs can now exchange text with other X applications.  Killing or
  685. copying text in Emacs now makes that text available for pasting into
  686. other X applications.  The Emacs yanking commands now insert the
  687. latest selection set by other applications, and add the text to the
  688. kill ring.  The Emacs commands for selecting and inserting text with
  689. the mouse now use the kill ring in the same way the keyboard killing
  690. and yanking commands do.
  691.  
  692. The option to specify the title for the initial frame is now `-name NAME'.
  693. There is currently no way to specify an icon title; perhaps we will add
  694. one in the future.
  695.  
  696. * Undoing a deletion now puts point back where it was before the
  697. deletion.
  698.  
  699. * The variables that control how much undo information to save have
  700. been renamed to `undo-limit' and `undo-strong-limit'.  They used to be
  701. called `undo-threshold' and `undo-high-threshold'.
  702.  
  703. * You can now use kill commands in read-only buffers.  They don't
  704. actually change the buffer, and Emacs will beep and warn you that the
  705. buffer is read-only, but they do copy the text you tried to kill into
  706. the kill ring, so you can yank it into other buffers.
  707.  
  708. * C-o inserts the fill-prefix on the newly created line.  The command
  709. M-^ deletes the prefix (if it occurs) after the newline that it
  710. deletes.
  711.  
  712. * C-M-l now runs the command `reposition-window'.  It scrolls the
  713. window heuristically in a way designed to get useful information onto
  714. the screen.
  715.  
  716. * C-M-r is now reverse incremental regexp search.
  717.  
  718. * M-z now kills through the target character.  In version 18, it
  719. killed up to but not including the target character.
  720.  
  721. * M-! now runs the specified shell command asynchronously if it
  722. ends in `&' (just as the shell does).
  723.  
  724. * C-h C-f and C-h C-k are new help commands that display the Info
  725. node for a given Emacs function name or key sequence, respectively.
  726.  
  727. * The C-h p command system lets you find Emacs Lisp packages by
  728. topic keywords.  Here is a partial list of package categories:
  729.  
  730. abbrev          abbreviation handling, typing shortcuts, macros
  731. bib          code related to the bib bibliography processor
  732. c          C and C++ language support
  733. calendar      calendar and time management support
  734. comm          communications, networking, remote access to files
  735. docs          support for Emacs documentation
  736. emulations    emulations of other editors
  737. extensions    Emacs Lisp language extensions
  738. games          games, jokes and amusements
  739. hardware      support for interfacing with exotic hardware
  740. help          support for on-line help systems
  741. i14n          internationalization and alternate character-set support
  742. internal      code for Emacs internals, build process, defaults
  743. languages     specialized modes for editing programming languages
  744. lisp          Lisp support, including Emacs Lisp
  745. local          code local to your site
  746. maint          maintenance aids for the Emacs development group
  747. mail          modes for electronic-mail handling
  748. news          support for netnews reading and posting
  749. processes     process, subshell, compilation, and job control support
  750. terminals     support for terminal types
  751. tex          code related to the TeX formatter
  752. tools          programming tools
  753. unix          front-ends/assistants for, or emulators of, UNIX features
  754. vms          support code for vms
  755. wp          word processing
  756.  
  757. More will be added soon.
  758.  
  759. * The command to split a window into two side-by-side windows is now
  760. C-x 3.  It was C-x 5.
  761.  
  762. * M-. (find-tag) no longer has any effect on what M-, will do
  763. subsequently.  You can no longer use M-, to find the next similar tag;
  764. you must use M-. with a prefix argument, instead.
  765.  
  766. The motive for this change is so that you can more reliably use
  767. M-, to resume a suspended `tags-search' or `tags-query-replace'.
  768.  
  769. * C-x s (`save-some-buffers') now gives you more options when it asks
  770. whether to save a particular buffer.  In addition to `y' or `n', you
  771. can answer `!' to save all the remaining buffers, `.' to save this
  772. buffer but not save any others, ESC to stop saving and exit the
  773. command, and C-h to get help.  These options are analogous to those 
  774. of `query-replace'.
  775.  
  776. * M-x make-symbolic-link does not expand its first argument.
  777. This lets you make a link with a target that is a relative file name.
  778.  
  779. * M-x add-change-log-entry and C-x 4 a now automatically insert the
  780. name of the file and often the name of the function that you changed.
  781. They also handle grouping of entries.
  782.  
  783. There is now a special major mode for editing ChangeLog files.  It
  784. makes filling work conveniently.  Each bunch of grouped entries is one
  785. paragraph, and each collection of entries from one person on one day
  786. is considered a page.
  787.  
  788. * The `comment-region' command adds comment delimiters to the lines that
  789. start in the region, thus commenting them out.  With a negative argument,
  790. it deletes comment delimiters from the lines in the region--this cancels
  791. the effect of `comment-region' without an argument.
  792.  
  793. With a positive argument, `comment-region' adds comment delimiters
  794. but duplicates the last character of the comment start sequence as many
  795. times as the argument specifies.  This is a way of calling attention to
  796. the comment.  In Lisp, you should use an argument at least two, because
  797. the indentation convention for single semicolon comments does not leave
  798. them at the beginning of a line.
  799.  
  800. * If `split-window-keep-point' is non-nil, C-x 2 tries to avoid
  801. shifting any text on the screen by putting point in whichever window
  802. happens to contain the screen line the cursor is already on.
  803. The default is that `split-window-keep-point' is non-nil on slow
  804. terminals.
  805.  
  806. * M-x super-apropos is like M-x apropos except that it searches both
  807. Lisp symbol names and documentation strings for matches.  It describes
  808. every symbol that has a match in either the symbol's name or its
  809. documentation.
  810.  
  811. Both M-x apropos and M-x super-apropos take an optional second
  812. argument DO-ALL which controls the more expensive part of the job.
  813. This includes looking up and printing the key bindings of all
  814. commands.  It also includes checking documentation strings in
  815. super-apropos.  DO-ALL is nil by default; use a prefix arg to make it
  816. non-nil.
  817.  
  818. * M-x revert-buffer no longer offers to revert from a recent auto-save
  819. file unless you give it a prefix argument.  Otherwise it always
  820. reverts from the real file regardless of whether there has been an
  821. auto-save since thenm.  (Reverting from the auto-save file is no longer
  822. very useful now that the undo capacity is larger.)
  823.  
  824. * M-x recover-file no longer turns off Auto Save mode when it reads
  825. the last Auto Save file.
  826.  
  827. * M-x rename-buffer, if you give it a prefix argument,
  828. avoids errors by modifying the new name to make it unique.
  829.  
  830. * M-x rename-uniquely renames the current buffer to a similar name
  831. with a numeric suffix added to make it both different and unique.
  832.  
  833. One use of this command is for creating multiple shell buffers.
  834. If you rename your shell buffer, and then do M-x shell again, it
  835. makes a new shell buffer.  This method is also good for mail buffers,
  836. compilation buffers, and any Emacs feature which creates a special
  837. buffer with a particular name.
  838.  
  839. * M-x compare-windows with a prefix argument ignores changes in whitespace.
  840. If `compare-ignore-case' is non-nil, then differences in case are also
  841. ignored.
  842.  
  843. * `backward-paragraph' is now bound to M-{ by default, and `forward-paragraph'
  844. to M-}.  Originally, these commands were bound to M-[ and M-], but they were
  845. running into conflicts with the use of function keys.  On many terminals,
  846. function keys send a sequence beginning ESC-[, so many users have defined this
  847. as a prefix key.
  848.  
  849. * C-x C-u (upcase-region) and C-x C-l (downcase-region) are now disabled by
  850. default; these commands seem to be often hit by accident, and can be
  851. quite destructive if their effects are not noticed immediately.
  852.  
  853. * The function `erase-buffer' is now interactive, but disabled by default.
  854.  
  855. * When visiting a new file, Emacs attempts to abbreviate the file's
  856. path using the symlinks listed in `directory-abbrev-alist'.
  857.  
  858. * When you visit the same file in under two names that translate into
  859. the same name once symbolic links are handled, Emacs warns you that
  860. you have two buffers for the same file.
  861.  
  862. * If you wish to avoid visiting the same file in two buffers under
  863. different names, set the variable `find-file-existing-other-name'
  864. non-nil.  Then `find-file' uses the existing buffer visiting the file,
  865. no matter which of the file's names you specify.
  866.  
  867. * If you set `find-file-visit-truename' non-nil, then the file name
  868. recorded for a buffer is the file's truename (in which all symbolic
  869. links have been removed), rather than the name you specify.  Setting
  870. `find-file-visit-truename' also implies the effect of
  871. `find-file-existing-other-name'.
  872.  
  873. * C-x C-v now inserts the entire current file name in the minibuffer.
  874. This is convenient if you made a small mistake in typing it.  Point
  875. goes after the last slash, before the last file name component, so if
  876. you want to replace it entirely, you can use C-k right away to delete
  877. it.
  878.  
  879. * Commands such as C-M-f in Lisp mode now ignore parentheses within comments.
  880.  
  881. * C-x q now uses ESC to terminate all iterations of the keyboard
  882. macro, rather than C-d as before.
  883.  
  884. * Use the command `setenv' to set an individual environment variable
  885. for Emacs subprocesses.  Specify a variable name and a value, both as
  886. strings.  This command applies only to subprocesses yet to be
  887. started.
  888.  
  889. * Use `rot13-other-window' to examine a buffer with rot13.
  890.  
  891. This command does not change the text in the buffer.  Instead, it
  892. creates a window with a funny display table that applies the code when
  893. displaying the text.
  894.  
  895. * The command `M-x version' now prints the current Emacs version; The
  896. `version' command is an alias for the `emacs-version' command.
  897.  
  898. * More complex changes in existing packages.
  899.  
  900. ** `fill-nonuniform-paragraphs' is a new command, much like
  901. `fill-individual-paragraphs' except that only separator lines separate
  902. paragraphs.  Since this means that the lines of one paragraph may have
  903. different amounts of indentation, the fill prefix used is the smallest
  904. amount of indentation of any of the lines of the paragraph.
  905.  
  906. ** Filling is now partially controlled by a new minor mode, Adaptive
  907. Fill mode.  When this mode is enabled (and it is enabled by default),
  908. if you use M-x fill-region-as-paragraph on an indented paragraph and
  909. you don't have a fill prefix, it uses the indentation of the second
  910. line of the paragraph as the fill prefix.
  911.  
  912. Adaptive Fill mode doesn't have much effect on M-q in most major
  913. modes, because an indented line will probably count as a paragraph
  914. starter and thus each line of an indented paragraph will be considered
  915. a paragraph of its own.
  916.  
  917. ** M-q in C mode now runs `c-fill-paragraph', which is designed
  918. for filling C comments.  (We assume you don't want to fill
  919. the code in a C program.)
  920.  
  921. ** M-$ now runs the Ispell program instead of the Unix spell program.
  922.  
  923. M-$ starts an Ispell process the first time you use it.  But the process
  924. stays alive, so that subsequent uses of M-$ run very fast.
  925. If you want to get rid of the process, use M-x kill-ispell.
  926.  
  927. To check the entire current buffer, use M-x ispell-buffer.
  928. Use M-x ispell-region to check just the current region.
  929.  
  930. Ispell commands often involve interactive replacement of words.
  931. You can interrupt the interactive replacement with C-g.
  932. You can restart it again afterward with C-u M-$.
  933.  
  934. During interactive replacement, you can type the following characters:
  935.  
  936. a    Accept this word this time.
  937. DIGIT    Replace the word (this time) with one of the displayed near-misses.
  938.     The digit you use says which near-miss to use.
  939. i    Insert this word in your private dictionary
  940.       so that Ispell will consider it correct it from now on.
  941. r    Replace the word this time with a string typed by you.
  942.  
  943. When the Ispell process starts, it reads your private dictionary which
  944. is the file `~/ispell.words'.  If you "insert" words with the `i' command,
  945. these words are added to that file, but not right away--only at the end
  946. of the interactive replacement process.
  947.  
  948. Use M-x reload-ispell to reload your private dictionary from
  949. `~/ispell.words' if you edit it outside of Ispell.
  950.  
  951. * Changes in existing modes.
  952.  
  953. ** gdb-mode has been replaced by gud-mode.
  954.  
  955. The package gud.el (Grand Unified Debugger) replaces gdb.el in Emacs
  956. 19.  It provides a gdb.el-like interface to any of three debuggers;
  957. gdb itself, the sdb debugger supported on some Unix systems, or the
  958. dbx debugger on Berkeley systems.
  959.  
  960.    You start it up with one of the commands M-x gdb, M-x sdb, or
  961. M-x dbx.  Each entry point finishes by executing a hook; gdb-mode-hook,
  962. sdb-mode-hook or dbx-mode-hook respectively.
  963.  
  964. These bindings have changed:
  965. C-x C-a >    gud-down            (was M-d)
  966. C-x C-a <    gud-up                (was M-u)
  967. C-x C-a C-r    gud-cont            (was M-c)
  968. C-x C-a C-n    gud-next            (was M-n)
  969. C-x C-a C-s    gud-step            (was M-s)
  970. C-x C-a C-i     gud-stepi            (was M-i)
  971. C-x C-a C-l    gud-recenter            (was C-l)
  972. C-d        comint-delchar-or-maybe-eof    (was C-c C-d)
  973.  
  974. These bindings have been removed:
  975. C-c C-r        (was comint-show-output; now gud-cont)
  976.  
  977. Since GUD mode uses comint, it uses comint's input history commands,
  978. superseding C-c C-y (copy-last-shell-input):
  979.   M-p        comint-next-input
  980.   M-n        comint-previous-input
  981.   M-r        comint-previous-similar-input
  982.   M-s        comint-next-similar-input
  983.   M-C-r        comint-previous-input-matching
  984.  
  985. The C-x C-a bindings are also active in source files.
  986.  
  987. ** The old TeX mode bindings of M-{ and M-} have been moved to C-c {
  988. and C-c }.  (These commands are `up-list' and `tex-insert-braces';
  989. they are the TeX equivalents of M-( and M-).)  This is because M-{ 
  990. and M-} are now globally defined commands.
  991.  
  992. ** Changes in Mail mode.
  993.  
  994. `%' is now a word-separator character in Mail mode.
  995.  
  996. `mail-signature', if non-nil, tells M-x mail to insert your
  997. `.signature' file automatically.  If you don't want your signature in
  998. a particular message, just delete it before you send the message.
  999.  
  1000. You can specify the text to insert at the beginning of each line when
  1001. you use C-c C-y to yank the message you are replying to.  Set
  1002. `mail-yank-prefix' to the desired string.  A value of `nil' (the
  1003. default) means to use indentation, as in Emacs 18.  If you use just
  1004. C-u as the prefix argument to C-c C-y, then it does not insert
  1005. anything at the beginning of the lines, regardless of the value of
  1006. `mail-yank-prefix'.
  1007.  
  1008. If you like, you can expand mail aliases as abbrevs, as soon as you
  1009. type them in.  To enable this feature, execute the following:
  1010.  
  1011.     (add-hook 'mail-setup-hook 'mail-abbrevs-setup)
  1012.  
  1013. This can go in your .emacs file.
  1014.  
  1015. Word abbrevs don't expand unless you insert a word-separator character
  1016. afterward.  Any mail aliases that you didn't expand at insertion time
  1017. are expanded subsequently when you send the message.
  1018.  
  1019. ** Changes in Rmail.
  1020.  
  1021. Rmail by default gets new mail only from the system inbox file,
  1022. not from `~/mbox'.
  1023.  
  1024. In Rmail, you can retry sending a message that failed
  1025. by typing `M-m' on the failure message.
  1026.  
  1027. By contrast, another new command M-x rmail-resend is used for
  1028. forwarding a message and marking it as "resent from" you
  1029. with header fields "Resent-From:" and "Resent-To:".
  1030.  
  1031. `e' is now the command to edit a message.
  1032. To expunge, type `x'.  We know this will surprise people
  1033. some of the time, but the surprise will not be disastrous--if
  1034. you type `e' meaning to expunge, just turn off editing with C-c C-c
  1035. and then type `x'.
  1036.  
  1037. Another new Rmail command is `<', which moves to the first message.
  1038. This is for symmetry with `>'.
  1039.  
  1040. Use the `b' command to bury the Rmail buffer and its summary buffer,
  1041. if any, removing both of them from display on the screen.
  1042.  
  1043. The variable `rmail-output-file-alist' now controls the default
  1044. for the file to output a message to.
  1045.  
  1046. In the Rmail summary buffer, all cursor motion commands select
  1047. the message you move to.  It's really neat when you use
  1048. incremental search.
  1049.  
  1050. You can now issue most Rmail commands from an Rmail summary buffer.
  1051. The commands do the same thing in that buffer that they do in the
  1052. Rmail buffer.  They apply to the message that is selected in the Rmail
  1053. buffer, which is always the one described by the current summary
  1054. line.
  1055.  
  1056. Conversely, motion and deletion commands in the Rmail buffer also
  1057. update the summary buffer.  If you set the variable
  1058. `rmail-redisplay-summary' to a non-nil value, then they bring the
  1059. summary buffer (if one exists) back onto the screen.
  1060.  
  1061. C-M-t is a new command to make a summary by topic.  It uses regexp
  1062. matching against just the subjects of the messages to decide which
  1063. messages to show in the summary.
  1064.  
  1065. You can easily convert an Rmail file to system mailbox format with the
  1066. command `unrmail'.  This command reads two arguments, the name of
  1067. the Rmail file to convert, and the name of the new mailbox file.
  1068. (This command does not change the Rmail file itself.)
  1069.  
  1070. Rmail now handles Content Length fields in messages.
  1071.  
  1072. ** `mail-extract-address-components' unpacks mail addresses.
  1073. It takes an address as a string (the contents of the From field, for
  1074. example) and returns a list of the form (FULL-NAME
  1075. CANONICAL-ADDRESS).
  1076.  
  1077. ** Changes in C mode and C-related commands.
  1078.  
  1079. *** M-x c-up-conditional
  1080.  
  1081. In C mode, `c-up-conditional' moves back to the containing
  1082. preprocessor conditional, setting the mark where point was
  1083. previously.
  1084.  
  1085. A prefix argument acts as a repeat count.  With a negative argument,
  1086. this command moves forward to the end of the containing preprocessor
  1087. conditional.  When going backwards, `#elif' acts like `#else' followed
  1088. by `#if'.  When going forwards, `#elif' is ignored.
  1089.  
  1090. *** In C mode, M-a and M-e are now defined as
  1091. `c-beginning-of-statement' and `c-end-of-statement'.
  1092.  
  1093. *** In C mode, M-x c-backslash-region is a new command to insert or
  1094. align `\' characters at the ends of the lines of the region, except
  1095. for the last such line.  This is useful after writing or editing a C
  1096. macro definition.
  1097.  
  1098. If a line already ends in `\', this command adjusts the amount of
  1099. whitespace before it.  Otherwise, it inserts a new `\'.
  1100.  
  1101. ** New features in info.
  1102.  
  1103. When Info looks for an Info file, it searches the directories
  1104. in `Info-directory-list'.  This makes it easy to install the Info files
  1105. that come with various packages.  You can specify the path with
  1106. the environment variable INFOPATH.
  1107.  
  1108. There are new commands in Info mode.
  1109.  
  1110. `]' now moves forward a node, going up and down levels as needed.
  1111. `[' is similar but moves backward.  These two commands try to traverse
  1112. the entire Info tree, node by node.  They are the equivalent of reading
  1113. a printed manual sequentially.
  1114.  
  1115. `<' moves to the top node of the current Info file.
  1116. `>' moves to the last node of the file.
  1117.  
  1118. SPC scrolls through the current node; at the end, it advances to the
  1119. next node in depth-first order (like `]').
  1120.  
  1121. DEL scrolls backwards in the current node; at the end, it moves to the
  1122. previous node in depth-first order (like `[').
  1123.  
  1124. After a menu select, the info `up' command now restores point in the
  1125. menu.  The combination of this and the previous two changes means that
  1126. repeated SPC keystrokes do the right (depth-first traverse forward) thing.
  1127.  
  1128. `i STRING RET' moves to the node associated with STRING in the index
  1129. or indices of this manual.  If there is more than one match for
  1130. STRING, the `i' command finds the first match.
  1131.  
  1132. `,' finds the next match for the string in the previous `i' command
  1133.  
  1134. If you click the middle mouse button near a cross-reference,
  1135. menu item or node pointer while in Info, you will go to the node
  1136. which is referenced.
  1137.  
  1138. ** Changes in M-x compile.
  1139.  
  1140. You can repeat any previous compilation command conveniently using the
  1141. minibuffer history commands, while in the minibuffer entering the
  1142. compilation command.
  1143.  
  1144. While a compilation is going on, the string `Compiling' appears in
  1145. the mode line.  When this string disappears, that tells you the
  1146. compilation is finished.
  1147.  
  1148. The buffer of compiler messages is in Compilation mode.  This mode
  1149. provides the keys SPC and DEL to scroll by screenfuls, and M-n and M-p
  1150. to move to the next or previous error message.  You can also use C-c
  1151. C-c on any error message to find the corresponding source code.
  1152.  
  1153. Emacs 19 has a more general parser for compiler messages.  For example, it
  1154. can understand messages from lint, and from certain C compilers whose error
  1155. message format is unusual.  Also, it only parses until it sees the error
  1156. message you want; you never have to wait a long time to see the first
  1157. error, no matter how big the buffer is.
  1158.  
  1159. ** M-x diff and M-x diff-backup.
  1160.  
  1161. This new command compares two files, displaying the differences in an
  1162. Emacs buffer.  The options for the `diff' program come from the
  1163. variable `diff-switches', whose value should be a string.
  1164.  
  1165. The buffer of differences has Compilation mode as its major mode, so you
  1166. can use C-x ` to visit successive changed locations in the two
  1167. source files, or you can move to a particular hunk of changes and type
  1168. C-c C-c to move to the corresponding source.  You can also use the
  1169. other special commands of Compilation mode: SPC and DEL for
  1170. scrolling, and M-n and M-p for cursor motion.
  1171.  
  1172. M-x diff-backup compares a file with its most recent backup.
  1173. If you specify the name of a backup file, `diff-backup' compares it
  1174. with the source file that it is a backup of.
  1175.  
  1176. ** The View commands (such as M-x view-buffer and M-x view-file) no
  1177. longer use recursive edits; instead, they switch temporarily to a
  1178. different major mode (View mode) specifically designed for moving
  1179. around through a buffer without editing it.
  1180.  
  1181. ** Changes in incremental search.
  1182.  
  1183. *** The character to terminate an incremental search is now RET.
  1184. This is for compatibility with the way most other arguments are read.
  1185.  
  1186. To search for a newline in an incremental search, type LFD (also known
  1187. as C-j).
  1188.  
  1189. *** Incremental search now maintains a ring of previous search
  1190. strings.  Use M-p and M-n to move through the ring to pick a search
  1191. string to reuse.  These commands leave the selected search ring
  1192. element in the minibuffer, where you can edit it.  Type C-s or C-r to
  1193. finish editing and search for the chosen string.
  1194.  
  1195. *** If you type an upper case letter in incremental search, that turns
  1196. off case-folding, so that you get a case-sensitive search.
  1197.  
  1198. *** If you type a space during regexp incremental search, it matches
  1199. any sequence of whitespace characters.  If you want to match just a space,
  1200. type C-q SPC.
  1201.  
  1202. *** Incremental search is now implemented as a major mode.  When you
  1203. type C-s, it switches temporarily to a different keymap which defines
  1204. each key to do what it ought to do for incremental search.  This has
  1205. next to no effect on the user-visible behavior of searching, but makes
  1206. it easier to customize that behavior.
  1207.  
  1208. Emacs 19 eliminates the old variables `search-...-char' that used to
  1209. be the way to specify the characters to use for various special
  1210. purposes in incremental search.  Instead, you can define the meaning
  1211. of a character in incremental search by modifying `isearch-mode-map'.
  1212.  
  1213. ** New commands in Buffer Menu mode.
  1214.  
  1215. The command C-o now displays the current line's buffer in another
  1216. window but does not select it.  This is like the existing command `o'
  1217. which selects the current line's buffer in another window.
  1218.  
  1219. The command % toggles the read-only flag of the current line's buffer.
  1220.  
  1221. The way to switch to a set of several buffers, including those marked
  1222. with m, is now v.  The q command simply quits, replacing the buffer
  1223. menu buffer with the buffer that was displayed previously.
  1224.  
  1225. * New major modes and packages.
  1226.  
  1227. ** The news reader GNUS is now installed.
  1228.  
  1229. ** There is a new interface for version control systems, called VC.
  1230. It works with both RCS and SCCS; in fact, you don't really have to
  1231. know which one of them is being used, because it automatically deals
  1232. with either one.
  1233.  
  1234. Most of the time, the only command you have to know about is C-x C-q.
  1235. This command normally toggles the read-only flag of the current
  1236. buffer.  If the buffer is visiting a file that is maintained with a
  1237. version control system, the command still toggles read-only, but does
  1238. so by checking the file in or checking it out.
  1239.  
  1240. When you check a file in, VC asks you for a log entry by popping up a
  1241. buffer.  Edit the entry there, then type C-c C-c when it is ready.
  1242. That's when the actual checkin happens.  If you change your mind about
  1243. the checkin, simply switch buffers and don't ever go back to the log
  1244. buffer.
  1245.  
  1246. To start using version control for a file, use the command C-x v v.
  1247. This works like C-x C-q (performing the next logical version-control
  1248. operation needed to change the file's writeability) but it will also
  1249. perform initial checkin on an unregistered file.
  1250.  
  1251. By default, VC uses RCS if RCS is installed on your machine;
  1252. otherwise, SCCS.  If you want to make the choice explicitly, you can do
  1253. it by setting `vc-default-back-end' to the symbol `RCS' or the symbol
  1254. `SCCS'.
  1255.  
  1256. You can tell when a file you visit is maintained with version control
  1257. because either `RCS' or `SCCS' appears in the mode line.
  1258.  
  1259. ** A new Calendar mode has been added, based on the work of Nachum
  1260. Dershowitz and Edward M. Reingold.  The mode can display the Gregorian
  1261. calendar and a variety of other calendars at any date, and interacts
  1262. with a diary facility similar to the UNIX `calendar' utility.
  1263.  
  1264. ** There is a new major mode for editing binary files: Hexl mode.
  1265. To use it, use M-x hexl-find-file instead of C-x C-f to visit the file.
  1266. This command converts the file's contents to hexadecimal and lets you
  1267. edit the translation.  When you save the file, it is converted 
  1268. automatically back to binary.
  1269.  
  1270. You can also use M-x hexl-mode to translate an existing buffer into hex.
  1271. Do this if you have already visited a binary file.  
  1272.  
  1273. Hexl mode has a few other commands:
  1274.  
  1275. C-M-d    insert a byte with a code typed in decimal.
  1276. C-M-o    insert a byte with a code typed in octal.
  1277. C-M-x    insert a byte with a code typed in hex.
  1278.  
  1279. C-x [   move to the beginning of a 1k-byte "page".
  1280. C-x ]   move to the end of a 1k-byte "page".
  1281.  
  1282. M-g     go to an address specified in hex.
  1283. M-j    go to an address specified in decimal.
  1284.  
  1285. C-c C-c    leave hexl mode and go back to the previous major mode.
  1286.  
  1287. ** Miscellaneous new major modes include Awk mode, Icon mode, Makefile
  1288. mode, Perl mode and SGML mode.
  1289.  
  1290. ** Edebug, a new source-level debugger for Emacs Lisp functions.
  1291.  
  1292. To use Edebug, use the command M-x edebug-defun to "evaluate" a
  1293. function definition in an Emacs Lisp file.  We put "evaluate" in
  1294. quotation marks because it doesn't just evaluate the function, it also
  1295. inserts additional information to support source-level debugging.
  1296.  
  1297. You must also do
  1298.  
  1299.     (setq debugger 'edebug-debug)
  1300.  
  1301. to cause errors and single-stepping to use Edebug instead of the usual
  1302. Emacs Lisp debugger.
  1303.  
  1304. For more information, see the Edebug manual, which should be included
  1305. in the Emacs distribution.
  1306.  
  1307. ** C++ mode is like C mode, except that it understands C++ comment syntax
  1308. and certain other differences between C and C++.  It also has a command
  1309. `fill-c++-comment' which fills a paragraph made of comment lines.
  1310.  
  1311. The command `comment-region' is useful in C++ mode for commenting out
  1312. several consecutive lines, or removing the commenting out of such lines.
  1313.  
  1314. ** A new package for merging two variants of the same text.
  1315.  
  1316. It's not unusual for programmers to get their signals crossed and
  1317. modify the same program in two different directions.  Then somebody
  1318. has to merge the two versions.  The command `emerge-files' makes this
  1319. easier.
  1320.  
  1321. `emerge-files' reads two file names and compares them.  Then it
  1322. displays three buffers: one for each file, and one for the
  1323. differences.
  1324.  
  1325. If the original version of the file is available, you can make things
  1326. even easier using `emerge-files-with-ancestor'.  It reads three file
  1327. names--variant 1, variant 2, and the common ancestor--and uses diff3
  1328. to compare them.
  1329.  
  1330. You control the merging interactively.  The main loop of Emerge
  1331. consists of showing you one set of differences, asking you what to do
  1332. about them, and doing it.  You have a choice of two modes for giving
  1333. directions to Emerge: "fast" mode and "edit" mode.
  1334.  
  1335. In Fast mode, Emerge commands are single characters, and ordinary
  1336. Emacs commands are disabled.  This makes Emerge operations fast, but
  1337. prevents you from doing more than selecting the A or the B version of
  1338. differences.  In Edit mode, all emerge commands use the C-c prefix,
  1339. and the usual Emacs commands are available.  This allows editing the
  1340. merge buffer, but slows down Emerge operations.  Edit and fast modes
  1341. are indicated by `F' and `E' in the minor modes in the mode line.
  1342.  
  1343. The Emerge commands are:
  1344.  
  1345.     p    go to the previous difference
  1346.     n    go to the next difference
  1347.     a    select the A version of this difference
  1348.     b    select the B version of this difference
  1349.     j    go to a particular difference (prefix argument
  1350.         specifies which difference) (0j suppresses display of
  1351.         the flags)
  1352.     q    quit - finish the merge*
  1353.     f    go into fast mode
  1354.     e    go into edit mode
  1355.     l    recenter (C-l) all three windows*
  1356.     - and 0 through 9
  1357.         prefix numeric arguments
  1358.     d a    select the A version as the default from here down in
  1359.         the merge buffer*
  1360.     d b    select the B version as the default from here down in
  1361.         the merge buffer*
  1362.     c a    copy the A version of the difference into the kill
  1363.         ring
  1364.     c b    copy the B version of the difference into the kill
  1365.         ring
  1366.     i a    insert the A version of the difference at the point
  1367.     i b    insert the B version of the difference at the point
  1368.     m    put the point and mark around the difference region
  1369.     ^    scroll-down (like M-v) the three windows*
  1370.     v    scroll-up (like C-v) the three windows*
  1371.     <    scroll-left (like C-x <) the three windows*
  1372.     >    scroll-right (like C-x >) the three windows*
  1373.     |    reset horizontal scroll on the three windows*
  1374.     x 1    shrink the merge window to one line (use C-u l to restore it
  1375.         to full size)
  1376.     x a    find the difference containing a location in the A buffer*
  1377.     x b    find the difference containing a location in the B buffer*
  1378.     x c    combine the two versions of this difference*
  1379.     x C    combine the two versions of this difference, using a
  1380.         register's value as the template*
  1381.     x d    find the difference containing a location in the merge buffer*
  1382.     x f    show the files/buffers Emerge is operating on in Help window
  1383.         (use C-u l to restore windows)
  1384.     x j    join this difference with the following one
  1385.         (C-u x j joins this difference with the previous one)
  1386.     x l    show line numbers of points in A, B, and merge buffers
  1387.     x m    change major mode of merge buffer*
  1388.     x s    split this difference into two differences
  1389.         (first position the point in all three buffers to the places
  1390.         to split the difference)
  1391.     x t    trim identical lines off top and bottom of difference
  1392.         (such lines occur when the A and B versions are
  1393.         identical but differ from the ancestor version)
  1394.     x x    set the template for the x c command*
  1395.  
  1396. Normally, the merged output goes back in the first file specified.
  1397. If you use a prefix argument, Emerge reads another file name to use
  1398. for the output file.
  1399.  
  1400. Once Emerge has prepared the buffer of differences, it runs the hooks
  1401. in `emerge-startup-hooks'.
  1402.  
  1403. ** Asm mode is a new major mode for editing files of assembler code.
  1404. It defines these commands:
  1405.  
  1406. TAB    tab-to-tab-stop.
  1407. LFD    Insert a newline and then indent using tab-to-tab-stop.
  1408. :    Insert a colon and then remove the indentation
  1409.     from before the label preceding colon.  Then tab-to-tab-stop.
  1410. ;    Insert or align a comment.
  1411.  
  1412. ** Two-column mode lets you conveniently edit two side-by-side columns
  1413. of text.  It works using two side-by-side windows, each showing its
  1414. own buffer.
  1415.  
  1416. Here are three ways to enter two-column mode:
  1417.  
  1418. C-x 6 2 makes the current buffer into the left-hand buffer.  It the
  1419. right-hand window it puts a buffer whose name is based on the current
  1420. buffer's name.
  1421.  
  1422. C-x 6 b BUFFER RET makes the current buffer into the left-hand buffer,
  1423. and uses buffer BUFFER as the right-hand buffer.
  1424.  
  1425. C-x 6 s splits the current buffer, which contains two-column text,
  1426. into two side-by-side buffers.  The old current buffer becomes the
  1427. left-hand buffer, but the text in the right column is moved into the
  1428. right-hand buffer.  The current column specifies the split point.
  1429. Splitting starts with the current line and continues to the end of the
  1430. buffer.
  1431.  
  1432. C-x 6 s takes a prefix argument which specifies how many characters
  1433. before point constitute the column separator.  (The default argument
  1434. is 1, as usual, so by default the column separator is the character
  1435. before point.)  Lines that don't have the column separator at the
  1436. proper place remain unsplit; they stay in the left-hand buffer, and
  1437. the right-hand buffer gets an empty line to correspond.
  1438.  
  1439. You can scroll both buffers together using C-x 6 SPC (scroll up), C-x
  1440. 6 DEL (scroll down), and C-x 6 RET (scroll up one line).  C-x 6 C-l
  1441. recenters both buffers together.
  1442.  
  1443. If you want to make a lines which will span both columns, put it in
  1444. the left-hand buffer, with an empty line in the corresponding place in
  1445. the right-hand buffer.
  1446.  
  1447. When you have edited both buffers as you wish, merge them with C-x 6
  1448. 1.  This copies the text from the right-hand buffer as a second column
  1449. in the other buffer.  To go back to two-column editing, use C-x 6 s.
  1450.  
  1451. Use C-x 6 d to disassociate the two buffers, leaving each as it
  1452. stands.  (If the other buffer, the one that was not current when you
  1453. type C-x 6 d, is empty, C-x 6 d kills it.)
  1454.  
  1455. ** You can supply command arguments such as files to visit to an Emacs
  1456. that is already running.  To do this, you must do this in your .emacs
  1457. file:
  1458.    (add-hook 'suspend-hook 'resume-suspend-hook)
  1459. Also you must use the shellscript emacs.csh or emacs.sh, found in the
  1460. etc subdirectory.
  1461.  
  1462. ** Shell mode has been completely replaced.
  1463. The basic idea is the same, but there are new commands available in
  1464. this mode.
  1465.       
  1466. TAB now completes the file name before point in the shell buffer.
  1467. To get a list of all possible completions, type M-?.
  1468.  
  1469. There is a new convenient history mechanism for repeating previous
  1470. commands.  Use the command M-p to recall the last command; it copies
  1471. the text of that command to the place where you are editing.  If you
  1472. repeat M-p, it replaces the copied command with the previous command.
  1473. M-n is similar but goes in the opposite direction towards the present.
  1474. When you find the command you wanted, you can edit it, or just
  1475. resubmit it by typing RET.
  1476.  
  1477. You can also use M-r and M-s to search for (respectively) earlier or 
  1478. later inputs starting with a given string.  First type the string, 
  1479. then type M-r to yank a previous input from the history which starts
  1480. with that string.  You can repeat M-r to find successively earlier
  1481. inputs starting with the same string.  You can start moving in the
  1482. opposite direction (toward more recent inputs) by typing M-s instead
  1483. of M-r.  As long as you don't use any commands except M-r and M-s,
  1484. they keep using the same string that you had entered initially.
  1485.  
  1486. C-c C-o kills the last batch of output from a shell command.  This is
  1487. useful if a shell command spews out lots of output that just gets in
  1488. the way.
  1489.  
  1490. C-c C-r scrolls to display the beginning of the last batch of output
  1491. at the top of the window; it also moves the cursor there.
  1492.  
  1493. C-a on a line that starts with a shell prompt moves to the end of the
  1494. prompt, not to the very beginning of the line.
  1495.  
  1496. C-d typed at the end of the shell buffer sends EOF to the subshell.
  1497. At any other position in the buffer, it deletes a character as usual.
  1498.  
  1499. If Emacs gets confused while trying to track changes in the shell's
  1500. current directory, type M-x dirs to re-synchronize.
  1501.  
  1502. M-x send-invisible reads a line of text without echoing it, and
  1503. sends it to the shell.
  1504.  
  1505. If you accidentally suspend your process, use M-x comint-continue-subjob 
  1506. to continue it.
  1507.          
  1508. ** There is now a convenient way to enable flow control on terminals
  1509. where you can't win without it.  Suppose you want to do this on
  1510. VT-100 and H19 terminals; put the following in your `.emacs' file:
  1511.  
  1512.    (enable-flow-control-on "vt100" "h19")
  1513.  
  1514. When flow control is enabled, you must type C-\ to get the effect of a
  1515. C-s, and type C-^ to get the effect of a C-q.
  1516.  
  1517. The function `enable-flow-control' enables flow control unconditionally.
  1518.  
  1519. * Changes in Dired
  1520.  
  1521. Dired has many new features which allow you to do these things:
  1522.  
  1523. - Rename, copy, or make links to many files at once.
  1524.  
  1525. - Make distinguishable types of marks for different operations.
  1526.  
  1527. - Display contents of subdirectories in the same Dired buffer as the
  1528. parent directory.
  1529.  
  1530. ** Setting and Clearing Marks
  1531.  
  1532. There are now two kinds of marker that you can put on a file in Dired:
  1533. `D' for deletion, and `*' for any other kind of operation.
  1534. The `x' command deletes only files marked with `D', and most
  1535. other Dired commands operate only on the files marked with `*'.
  1536.  
  1537. To mark files with `D' (also called "flagging" the files), you
  1538. can use `d' as usual.  Here are some commands for marking with
  1539. `*' (and also for unmarking):
  1540.  
  1541. *** `m' marks the current file with `*', for an operation other than
  1542. deletion.
  1543.  
  1544. *** `*' marks all executable files.  With a prefix argument, it
  1545. unmarks all those files.
  1546.  
  1547. *** `@' marks all symbolic links.  With a prefix argument, it unmarks
  1548. all those files.
  1549.  
  1550. *** `/' marks all directory files except `.' and `..'.  With a prefix
  1551. argument, it unmarks all those files.
  1552.  
  1553. *** M-DEL removes a specific or all marks from every file.  With an
  1554. argument, queries for each marked file.  Type your help character,
  1555. usually C-h, at that time for help.
  1556.  
  1557. *** `c' replaces all marks that use the character OLD with marks that
  1558. use the character NEW.  You can use almost any character as a mark
  1559. character by means of this command, to distinguish various classes of
  1560. files.  If OLD is ` ', then the command operates on all unmarked
  1561. files; if NEW is ` ', then the command unmarks the files in acts on.
  1562.  
  1563. ** Operating on Multiple Files
  1564.  
  1565. The Dired commands to operate directly on files (rename them, copy
  1566. them, and so on) have been generalized to work on multiple files.
  1567. There are also some additional commands in this series.
  1568.  
  1569. All of these commands use the same convention to decide which files to
  1570. manipulate:
  1571.  
  1572. - If you give the command a numeric prefix argument @var{n}, it operates
  1573. on the next @var{n} files, starting with the current file.
  1574.  
  1575. - Otherwise, if there are marked files, the commands operate on all the
  1576. marked files.
  1577.  
  1578. - Otherwise, the command operates on the current file only.
  1579.  
  1580. These are the commands:
  1581.  
  1582. *** `C' copies the specified files.  You must specify a directory to
  1583. copy into, or (if copying a single file) a new name.
  1584.  
  1585. If `dired-copy-preserve-time' is non-`nil', then copying sets
  1586. the modification time of the new file to be the same as that of the old
  1587. file.
  1588.  
  1589. *** `R' renames the specified files.  You must specify a directory to
  1590. rename into, or (if renaming a single file) a new name.
  1591.  
  1592. Dired automatically changes the visited file name of buffers associated
  1593. with renamed files so that they refer to the new names.
  1594.  
  1595. *** `H' makes hard links to the specified files.  You must specify a
  1596. directory to make the links in, or (if making just one link) the name
  1597. to give the link.
  1598.  
  1599. *** `S' makes symbolic links to the specified files.  You must specify
  1600. a directory to make the links in, or (if making just one link) the
  1601. name to give the link.
  1602.  
  1603. *** `M' changes the mode of the specified files.  This calls the
  1604. `chmod' program, so you can describe the desired mode change with any
  1605. argument that `chmod' would handle.
  1606.  
  1607. *** `G' changes the group of the specified files.
  1608.  
  1609. *** `O' changes the owner of the specified files.  (On normal systems,
  1610. only the superuser can do this.)
  1611.  
  1612. The variable `dired-chown-program' specifies the name of the
  1613. program to use to do the work (different systems put `chown' in
  1614. different places.
  1615.  
  1616. *** `Z' compresses or uncompresses the specified files.
  1617.  
  1618. *** `L' loads the specified Emacs Lisp files.
  1619.  
  1620. *** `B' byte compiles the specified Emacs Lisp files.
  1621.  
  1622. *** `P' prints the specified files.  It uses the variables
  1623. `lpr-command' and `lpr-switches' just as `lpr-file' does.
  1624.  
  1625. ** Shell Commands in Dired
  1626.  
  1627. `!' reads a shell command string in the minibuffer and runs the shell
  1628. command on all the specified files.  There are two ways of applying a
  1629. shell command to multiple files:
  1630.  
  1631. - If you use `*' in the command, then the shell command runs just
  1632. once, with the list of file names substituted for the `*'.
  1633.  
  1634. Thus, `! tar cf foo.tar * RET' runs `tar' on the entire list of file
  1635. names, putting them into one tar file `foo.tar'.  The file names are
  1636. inserted in the order that they appear in the Dired buffer.
  1637.  
  1638. - If the command string doesn't contain `*', then it runs once for
  1639. each file, with the file name attached at the end.  For example, `!
  1640. uudecode RET' runs `uudecode' on each file.
  1641.  
  1642. To run the shell command once for each file but without being limited
  1643. to putting the file name inserted in the middle, use a shell loop.
  1644. For example, this shell command would run `uuencode' on each of the
  1645. specified files, writing the output into a corresponding `.uu' file:
  1646.  
  1647.     for file in *; uuencode $file $file >$file.uu; done
  1648.  
  1649. The working directory for the shell command is the top level directory
  1650. of the Dired buffer.
  1651.  
  1652. ** Regular Expression File Name Substitution
  1653.  
  1654. *** `% m REGEXP RET' marks all files whose names match the regular
  1655. expression REGEXP.
  1656.  
  1657. Only the non-directory part of the file name is used in matching.  Use
  1658. `^' and `$' to anchor matches.  Exclude subdirs by hiding them.
  1659.  
  1660. *** `% d REGEXP RET' flags for deletion all files whose names match
  1661. the regular expression REGEXP.
  1662.  
  1663. *** `% R', `% C', `% H', `% S'
  1664.  
  1665. These four commands rename, copy, make hard links and make soft links,
  1666. in each case computing the new name by regular expression substitution
  1667. from the name of the old file.  They  effectively perform
  1668. `query-replace-regexp' on the selected file names in the Dired buffer.
  1669.  
  1670. The commands read two arguments: a regular expression, and a
  1671. substitution pattern.  Each selected file name is matched against the
  1672. regular expression, and then the part which matched is replaced with
  1673. the substitution pattern.  You can use `\&' and `\DIGIT' in the
  1674. substitution pattern to refer to all or part of the old file name.
  1675.  
  1676. If the regular expression matches more than once in a file name,
  1677. only the first match is replaced.
  1678.  
  1679. Normally, the replacement process does not consider the directory names;
  1680. it operates on the file name within the directory.  If you specify a
  1681. prefix argument of zero, then replacement affects entire file name.
  1682.  
  1683. To apply the command to all files matching the same regexp that you
  1684. use in the command, mark those files with `% m REGEXP RET', then use
  1685. the same regular expression in `% R'.  To make this easier, `% R' uses
  1686. as a default the last regular expression specified in a `%' command.
  1687.  
  1688. ** Dired Case Conversion
  1689.  
  1690. *** `% u' renames each of the selected files to an upper case name.
  1691.  
  1692. *** `% l' renames each of the selected files to a lower case name.
  1693.  
  1694. ** File Comparison with Dired
  1695.  
  1696. *** `=' compares the current file with another file (the file at the
  1697. mark), by running the `diff' program.  The file at the mark is given
  1698. to `diff' first.
  1699.  
  1700. *** `M-=' compares the current file with its backup file.  If there
  1701. are several numerical backups, it uses the most recent one.  If this
  1702. file is a backup, it is compared with its original.
  1703.  
  1704. The backup file is the first file given to `diff'.
  1705.  
  1706. ** Subdirectories in Dired
  1707.  
  1708. You can display more than one directory in one Dired buffer.
  1709. The simplest way to do this is to specify the options `-lR' for
  1710. running `ls'.  That produces a recursive directory listing showing
  1711. all subdirectories, all within the same Dired buffer.
  1712.  
  1713. You can also insert the contents of a particular subdirectory with the
  1714. `i' command.  Use this command on the line that describes a file which
  1715. is a directory.  Inserted subdirectory contents follow the top-level
  1716. directory of the Dired buffer, just as they do in `ls -lR' output.
  1717.  
  1718. If the subdirectory's contents are already present in the buffer, the
  1719. `i' command just moves to it (type `l' to refresh it).  It sets the
  1720. Emacs mark before moving, so C-x C-x takes you back to the old
  1721. position in the buffer.
  1722.  
  1723. When you have subdirectories in the Dired buffer, you can use the page
  1724. motion commands C-x [ and C-x ] to move by entire directories.
  1725.  
  1726. The following commands move up and down in the tree of directories
  1727. in one Dired buffer:
  1728.  
  1729. *** C-M-u  Go up to the parent directory's headerline.
  1730.  
  1731. *** C-M-d  Go down in the tree, to the first subdirectory's
  1732. headerline.
  1733.  
  1734. *** C-M-n  Go to next subdirectory headerline, regardless of level.
  1735.  
  1736. *** C-M-p  Go to previous subdirectory headerline, regardless of
  1737. level.
  1738.  
  1739. ** Hiding Subdirectories
  1740.  
  1741. "Hiding" a subdirectory means to make it invisible, except for its
  1742. headerline.  Files inside a hidden subdirectory are never considered
  1743. by Dired.  For example, the commands to operate on marked files ignore
  1744. files in hidden directories even if they are marked.
  1745.  
  1746. *** `$' hides or unhides the current subdirectory and move to next
  1747. subdirectory.  A prefix argument serves as a repeat count.
  1748.  
  1749. *** `M-$' hides all subdirectories, leaving only their header lines.
  1750. Or, if at least one subdirectory is currently hidden, it makes
  1751. everything visible again.  You can use this command to get an overview
  1752. in very deep directory trees or to move quickly to subdirectories far
  1753. away.
  1754.  
  1755. ** Editing the Dired Buffer
  1756.  
  1757. *** `l' updates the specified files in a Dired buffer.  This means
  1758. reading their current status from the file system and changing the
  1759. buffer to reflect it properly.
  1760.  
  1761. If you use this command on a subdirectory header line, it updates the
  1762. contents of the subdirectory.
  1763.  
  1764. *** `g' updates the entire contents of the Dired buffer.  It preserves
  1765. all marks except for those on files that have vanished.  Hidden
  1766. subdirectories are updated but remain hidden.
  1767.  
  1768. *** `k' kills all marked lines (not the files).  With a prefix
  1769. argument, it kills that many lines starting with the current line.
  1770.  
  1771. This command does not delete files; it just deletes text from the Dired
  1772. buffer.
  1773.  
  1774. If you kill the line for a file that is a directory, then its contents
  1775. are also deleted from the buffer.  Typing `C-u k' on the header line
  1776. for a subdirectory is another way to delete a subdirectory from the
  1777. Dired buffer.
  1778.  
  1779. ** `find' and Dired.
  1780.  
  1781. To search for files with names matching a wildcard pattern use
  1782. `find-name-dired'.  Its arguments are DIRECTORY and
  1783. PATTERN.  It selects all the files in DIRECTORY or its
  1784. subdirectories whose own names match PATTERN.
  1785.  
  1786. The files thus selected are displayed in a Dired buffer in which the
  1787. ordinary Dired commands are available.
  1788.  
  1789. If you want to test the contents of files, rather than their names, use
  1790. `find-grep-dired'.  This command takes two minibuffer arguments,
  1791. DIRECTORY and REGEXP; it selects all the files in
  1792. DIRECTORY or its subdirectories that contain a match for
  1793. REGEXP.  It works by running `find' and `grep'.
  1794.  
  1795. The most general command in this series is `find-dired', which lets
  1796. you specify any condition that `find' can test.  It takes two
  1797. minibuffer arguments, DIRECTORY and FIND-ARGS; it runs `find' in
  1798. DIRECTORY with using FIND-ARGS as the arguments to `find' specifying
  1799. which files to accept.  To use this command, you need to know how to
  1800. use `find'.
  1801.  
  1802. * New amusements and novelties.
  1803.  
  1804. ** `M-x mpuz' displays a multiplication puzzle, in which each letter
  1805. stands for a digit, and you must determine which digit.  The puzzles
  1806. are determined randomly, so they are always different.
  1807.  
  1808. ** `M-x gomoku' plays the game Gomoku with you.  It needs more work.
  1809.  
  1810. ** `M-x spook' adds a line of randomly chosen keywords to an outgoing
  1811. mail message.  The keywords are chosen from a list of words that
  1812. suggest you are discussing something subversive.
  1813.  
  1814. The idea is that the NSA reads all messages that contain keywords
  1815. suggesting they might be interested, and that adding these lines could
  1816. help to overload them.  I would guess that they have modified their
  1817. program by now to ignore these lines of keywords; perhaps the program
  1818. can be updated if some clever hacker can determine what criterion they
  1819. actually use now.
  1820.  
  1821. * Installation changes
  1822.  
  1823. ** The configure script has been provided to help with the
  1824. installation process.  It takes the place of editing the Makefiles and
  1825. src/config.h, and can often guess the appropriate operating system to
  1826. use for a particular machine type.  See INSTALL for a more detailed
  1827. description of the steps required for installation.
  1828.  
  1829. ** If you create a Lisp file named `site-start.el', Emacs loads the file
  1830. whenever it starts up.
  1831.  
  1832. ** A new Lisp variable, `data-directory', indicates the directory
  1833. containing the DOC file, tutorial, copying agreement, and other
  1834. familiar `etc' files.  The value of `data-directory' is a simple string.
  1835. The default should be set at build time, and the person installing
  1836. Emacs should place all the data files in this directory.  The `help.el'
  1837. functions that look for docstrings and information files check this
  1838. variable.  All Emacs Lisp packages should also be coded so that they
  1839. refer to `data-directory' to find data files.
  1840.  
  1841. ** The PURESIZE definition has been moved from config.h to its own
  1842. file, puresize.h.  Since almost every file of C source in the
  1843. distribution depends on config.h, but only alloc.c and data.c depend
  1844. on puresize.h, this means that changing the value of PURESIZE causes
  1845. only those two files to be recompiled.
  1846.  
  1847. ** The makefile at the top of the Emacs source tree now supports a
  1848. `dist' target, which creates a compressed tar file suitable for
  1849. distribution, using the contents of the source tree.  Object files,
  1850. old file versions, executables, DOC files, and other
  1851. architecture-specific or easy-to-recreate files are not included in
  1852. the tar file.
  1853.  
  1854. For older news, see the file ONEWS.
  1855. For Lisp changes in Emacs 19, see the file news.texi.
  1856.  
  1857. ----------------------------------------------------------------------
  1858. Copyright information:
  1859.  
  1860. Copyright (C) 1993 Free Software Foundation, Inc.
  1861.  
  1862.    Permission is granted to anyone to make or distribute verbatim copies
  1863.    of this document as received, in any medium, provided that the
  1864.    copyright notice and this permission notice are preserved,
  1865.    thus giving the recipient permission to redistribute in turn.
  1866.  
  1867.    Permission is granted to distribute modified versions
  1868.    of this document, or of portions of it,
  1869.    under the above conditions, provided also that they
  1870.    carry prominent notices stating who last changed them.
  1871.  
  1872. Local variables:
  1873. mode: text
  1874. end:
  1875.